-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swayfx compat changes #84
base: main
Are you sure you want to change the base?
Conversation
int width = output->width; | ||
int height = output->height; | ||
struct wlr_buffer *wlr_buffer = NULL; | ||
|
||
if (*fx_framebuffer == NULL) { | ||
if (swapchain == NULL) { | ||
printf("swapchain is null\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return early here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops must've pushed a debug change
@@ -565,6 +568,7 @@ struct wlr_renderer *fx_renderer_create_egl(struct wlr_egl *egl) { | |||
wlr_egl_unset_current(renderer->egl); | |||
|
|||
get_fx_shm_formats(renderer, &renderer->shm_texture_formats); | |||
printf("made renderer\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use wlr_log instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oop that was a debugging print I think
types/scene/wlr_scene.c
Outdated
@@ -2421,6 +2421,11 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output, | |||
timer->pre_render_duration = timespec_to_nsec(&duration); | |||
} | |||
|
|||
// TODO: we need to revisit this, this is a stopgap to ensure we can resume swayfx rebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this feels wrong. We should sanity check this with scene upstream. How do they handle the case of output swapchain not being enabled here? Are we missing an initialization on the swayfx side?
@@ -565,6 +568,7 @@ struct wlr_renderer *fx_renderer_create_egl(struct wlr_egl *egl) { | |||
wlr_egl_unset_current(renderer->egl); | |||
|
|||
get_fx_shm_formats(renderer, &renderer->shm_texture_formats); | |||
printf("made renderer\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oop that was a debugging print I think
This PR contains changes to scenefx related to the swayfx rebase (WillPower3309/swayfx#367)